/*
 * HttpResponse.h
 *
 */

#ifndef HTTPRESPONSE_H_
#define HTTPRESPONSE_H_

#include "HttpMessage.h"

class HttpResponse: public HttpMessage {
	private:
		int code;
		HttpBody* body;
	public:
		HttpResponse();
		virtual ~HttpResponse();

		int getCode() const;
		void setCode(int code);

		std::string getStatusLine() const;
		bool hasBody() const;
		HttpBody& getBody() const;
		void setBody(HttpBody* body);
};

#endif /* HTTPRESPONSE_H_ */
